package com.wulian.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author xf
 * @date 2021/3/21 下午 2:45
 * @Description
 */
public class IDUtil {

    public static Long makeRecordId(){
        Date date = new Date();
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmm");
        String fourRandom = RandomUtil.getFourRandom();
        return Long.valueOf(dateFormat.format(date)+fourRandom);
    }
}
